using System;
using ns27;

namespace Triton.Game.Mapping
{
	[Attribute38("Spawner")]
	public class Spawner : MonoBehaviour
	{
		public GameObject prefab => method_3<GameObject>("prefab");

		public bool spawnOnAwake => method_2<bool>("spawnOnAwake");

		public bool destroyOnSpawn => method_2<bool>("destroyOnSpawn");

		public Spawner(IntPtr address, string className)
			: base(address, className)
		{
		}

		public Spawner(IntPtr address)
			: this(address, "Spawner")
		{
		}

		public void Awake()
		{
			method_8("Awake");
		}

		public GameObject Spawn()
		{
			return method_15<GameObject>("Spawn", new Class276.Enum20[0], Array.Empty<object>());
		}
	}
}
